package dao;

import domain.WorkLocation;
import wrapper.WorkLocationWithDistance;

import java.util.List;
import java.util.Map;

/**
 * Created by aceyin on 15/6/25.
 */
public interface WorkLocationDao extends GenericDao<WorkLocation, Long> {
    WorkLocation getByRecruitmentId(long id);

    List<WorkLocation> findByCondition(Map<String, Object> map);

    List<WorkLocationWithDistance> findByCityAndConditionWith0Distance(String city, Map<String, Object> condition, int page);

    List<WorkLocationWithDistance> findByUserCoordinateAndCity(String city, Map<String, Object> condition, Double userLog, Double userLat, int page);

    WorkLocationWithDistance getByRecruitmentIdWithDistance(long recruitmentId, double longitude, double latitude);
}
